package day12;

public class Demo3 {
    public static void a() {
        int a=10;
        int b=0;
        int c=a/b;
        System.out.println(c);
    }
    public static void b() {
        a();
    }
    public static void c() {
        b();
    }
    public static void main(String[] args) {
        try {
         c();
        }
        catch (Exception e) {
            e.printStackTrace();
            String msg = e.getMessage();
            System.err.println(msg);
            System.err.println("打印错误信息");
        }
        System.out.println("程序程序结束");
    }
}
